using System.Net.WebSockets;

namespace IMServer.WebSocketServices;

public class WebSocketConnection
{
    public string UserId { get; set; }
    public WebSocket WebSocket { get; set; }
    public string ConnectionId { get; }

    public WebSocketConnection(string userId, WebSocket webSocket)
    {
        UserId = userId;
        WebSocket = webSocket;
        ConnectionId = Guid.NewGuid().ToString();
    }
}